package com.yiyi.user.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yiyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yiyi.common.annotation.Excel;

/**
 * 订单管理对象 order_info
 *
 * @author yiyi
 * @date 2024-09-24
 */
public class OrderInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNumber;

    /** 域名*/
    @Excel(name = "域名名称")
    private String domainUrl;


    /** 员工昵称*/
    @Excel(name = "负责人")
    private String empNickName;

    /** 支付类型*/
    @Excel(name = "支付类型", readConverterExp = "0=支付宝,1=微信")
    private Integer payType;

    /** 客户姓名 */
    @Excel(name = "客户姓名")
    private String customerName;

    /** 客户id */
    private Long customerId;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 支付金额 */
    @Excel(name = "支付金额")
    private BigDecimal payAmount;

    /** 支付状态 */
    @Excel(name = "支付状态", readConverterExp = "0=未支付,1=已支付")
    private String payStatus;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date patTime;

    /** 描述*/
    @Excel(name = "描述")
    private String description;

    /** 结果地址 */
    @Excel(name = "结果地址")
    private String resulAddress;

    /** 客服id */
    private Long userId;

    /** 承接的客服 */
    private String userName;

    /** openid*/
    private String openId;

    /** 返回地址*/
    private String returnUrl;

    /** 员工名称*/
    private String empName;

    /** 负责人userId*/
    private String personChargeUserId;

    /** 支付总金额*/
    private String priceSum;

    /** 开始时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date beginTime;

    /** 结束时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getPriceSum() {
        return priceSum;
    }

    public void setPriceSum(String priceSum) {
        this.priceSum = priceSum;
    }

    public String getPersonChargeUserId() {
        return personChargeUserId;
    }

    public void setPersonChargeUserId(String personChargeUserId) {
        this.personChargeUserId = personChargeUserId;
    }

    public String getEmpName() {
        return empName;
    }

    public void setEmpName(String empName) {
        this.empName = empName;
    }

    public String getEmpNickName() {
        return empNickName;
    }

    public void setEmpNickName(String empNickName) {
        this.empNickName = empNickName;
    }

    public String getDomainUrl() {
        return domainUrl;
    }

    public void setDomainUrl(String domainUrl) {
        this.domainUrl = domainUrl;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }

    public String getReturnUrl() {
        return returnUrl;
    }

    public void setReturnUrl(String returnUrl) {
        this.returnUrl = returnUrl;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setOrderNumber(String orderNumber)
    {
        this.orderNumber = orderNumber;
    }

    public String getOrderNumber()
    {
        return orderNumber;
    }
    public void setCustomerId(Long customerId)
    {
        this.customerId = customerId;
    }

    public Long getCustomerId()
    {
        return customerId;
    }
    public void setCustomerName(String customerName)
    {
        this.customerName = customerName;
    }

    public String getCustomerName()
    {
        return customerName;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }
    public void setPayAmount(BigDecimal payAmount)
    {
        this.payAmount = payAmount;
    }

    public BigDecimal getPayAmount()
    {
        return payAmount;
    }
    public void setPayStatus(String payStatus)
    {
        this.payStatus = payStatus;
    }

    public String getPayStatus()
    {
        return payStatus;
    }
    public void setPatTime(Date patTime)
    {
        this.patTime = patTime;
    }

    public Date getPatTime()
    {
        return patTime;
    }
    public void setResulAddress(String resulAddress)
    {
        this.resulAddress = resulAddress;
    }

    public String getResulAddress()
    {
        return resulAddress;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderNumber", getOrderNumber())
            .append("customerId", getCustomerId())
            .append("customerName", getCustomerName())
            .append("phone", getPhone())
            .append("payAmount", getPayAmount())
            .append("payStatus", getPayStatus())
            .append("patTime", getPatTime())
            .append("resulAddress", getResulAddress())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .toString();
    }
}
